<!DOCTYPE html>
<html lang="en">
<head>
	
	<!-- start: Meta -->
	<meta charset="utf-8" />
	<title>WCMS 登录</title>
	<!-- start: Mobile Specific -->
	<meta name="viewport" content="width=device-width, initial-scale=1" />
	<!-- end: Mobile Specific -->
	
	<!-- start: CSS -->
		<script src="./static/public/jquery-1.11.0.min.js" type="text/javascript" ></script>
	
	<link href="./static/bootstrap2/css/bootstrap.min.css" rel="stylesheet" />
	<link href="./static/bootstrap2/css/bootstrap-responsive.min.css" rel="stylesheet" />
	<link href="./static/bootstrap2/css/style.min.css" rel="stylesheet" />
	<link href="./static/bootstrap2/css/style-responsive.min.css" rel="stylesheet" />
	<link href="./static/bootstrap2/css/retina.css" rel="stylesheet" />
	<link href="./static/bootstrap2/css/my.css" rel="stylesheet" />
	<!-- end: CSS -->
 <body>
		
	
		
		 <!-- Main hero unit for a primary marketing message or call to action -->
      <div class="hero-unit">
        <h1>修改授权密码</h1>
        <p>打死也不能告诉别人哦(初始密码123456)</p>
        
        <p>
        <div class="form-horizontal">
          <div class="control-group">
        
         <span class="add-on"><i class="icon-lock">原授权密码</i></span>
							<input  name="password" id="old" type="text" value="" placeholder="原先密码" />
 
   </div>
   <div class="control-group">
 
  <span class="add-on"><i class="icon-lock">新授权密码</i></span>
							<input  name="password" id="new" type="text" value="" placeholder="新的密码" />
 </div>
  <div class="control-group">

     　　　　　　　　　　　　　　 <button class="btn btn-danger" onclick="save()">修改</button>
       </div>
       <a href="./index.php?buy/iframe" >返回订购系统</a>   | 授权密码被禁用请联系 网络管理部0573-83258127
      </div>

     </div>

      <hr>

      <footer>
        <p>&copy; 大灰狼  Email: 116311316@qq.com</p>
      </footer>

  {literal}
  <script>
  function save(){
 var oldpwd=$("#old").val();
 var newpwd=$("#new").val();
 
 if(old.lenght<5||newpwd.length<5){
  alert("密码不能少于6位");
	 }
 $.post("./index.php?buyauthorize/save",{oldpwd:oldpwd,newpwd:newpwd},function(data){
	  alert(data.message);

	  if(data.status==true){
   location.href='./index.php?buy/iframe';
		}
	},"json");

   }

  </script>
  {/literal}  
    
  </body>
</html>